<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__tcpwm__functions__pwm.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__tcpwm.html">TCPWM        (Timer Counter PWM)</a> &raquo; <a class="el" href="group__group__tcpwm__pwm.html">PWM (TCPWM)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga6440d2a9dc8d85056abd62556bee7f82"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga6440d2a9dc8d85056abd62556bee7f82">Cy_TCPWM_PWM_Init</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a> const *config)</td></tr>
<tr class="memdesc:ga6440d2a9dc8d85056abd62556bee7f82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the counter in the TCPWM block for the PWM operation.  <a href="#ga6440d2a9dc8d85056abd62556bee7f82">More...</a><br /></td></tr>
<tr class="separator:ga6440d2a9dc8d85056abd62556bee7f82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga428b093a2df4e1e80610596528b1c17d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga428b093a2df4e1e80610596528b1c17d">Cy_TCPWM_PWM_DeInit</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a> const *config)</td></tr>
<tr class="memdesc:ga428b093a2df4e1e80610596528b1c17d"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initializes the counter in the TCPWM block, returns register values to default.  <a href="#ga428b093a2df4e1e80610596528b1c17d">More...</a><br /></td></tr>
<tr class="separator:ga428b093a2df4e1e80610596528b1c17d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga802ebf3a49b1056e4bc5b057deb26e49"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga802ebf3a49b1056e4bc5b057deb26e49">Cy_TCPWM_PWM_Enable</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga802ebf3a49b1056e4bc5b057deb26e49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the counter in the TCPWM block for the PWM operation.  <a href="#ga802ebf3a49b1056e4bc5b057deb26e49">More...</a><br /></td></tr>
<tr class="separator:ga802ebf3a49b1056e4bc5b057deb26e49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7bfbd69af5f7db59e8436967443f9f70"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga7bfbd69af5f7db59e8436967443f9f70">Cy_TCPWM_PWM_Disable</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga7bfbd69af5f7db59e8436967443f9f70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the counter in the TCPWM block.  <a href="#ga7bfbd69af5f7db59e8436967443f9f70">More...</a><br /></td></tr>
<tr class="separator:ga7bfbd69af5f7db59e8436967443f9f70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga311f238402c63c616ee650d88cea181f"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga311f238402c63c616ee650d88cea181f">Cy_TCPWM_PWM_GetStatus</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga311f238402c63c616ee650d88cea181f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the status of the PWM whether it is running or not.  <a href="#ga311f238402c63c616ee650d88cea181f">More...</a><br /></td></tr>
<tr class="separator:ga311f238402c63c616ee650d88cea181f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaefee2e0b90dea3594aa413db257c3d6a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gaefee2e0b90dea3594aa413db257c3d6a">Cy_TCPWM_PWM_SetCompare0Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compare0)</td></tr>
<tr class="memdesc:gaefee2e0b90dea3594aa413db257c3d6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the compare value for Compare 0 when the compare mode enabled.  <a href="#gaefee2e0b90dea3594aa413db257c3d6a">More...</a><br /></td></tr>
<tr class="separator:gaefee2e0b90dea3594aa413db257c3d6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3979ea2dfd285f2ac008ebb8fc5d0cc0"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga3979ea2dfd285f2ac008ebb8fc5d0cc0">Cy_TCPWM_PWM_GetCompare0Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga3979ea2dfd285f2ac008ebb8fc5d0cc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns compare 0 value.  <a href="#ga3979ea2dfd285f2ac008ebb8fc5d0cc0">More...</a><br /></td></tr>
<tr class="separator:ga3979ea2dfd285f2ac008ebb8fc5d0cc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9c63c17045b417ecfa6e0346f9f99879"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga9c63c17045b417ecfa6e0346f9f99879">Cy_TCPWM_PWM_SetCompare0BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compareBuf0)</td></tr>
<tr class="memdesc:ga9c63c17045b417ecfa6e0346f9f99879"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the buffered compare value for Compare 0 when the compare mode enabled.  <a href="#ga9c63c17045b417ecfa6e0346f9f99879">More...</a><br /></td></tr>
<tr class="separator:ga9c63c17045b417ecfa6e0346f9f99879"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5514009510fe22eec545bcc91072d439"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga5514009510fe22eec545bcc91072d439">Cy_TCPWM_PWM_GetCompare0BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga5514009510fe22eec545bcc91072d439"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the buffered compare 0 value.  <a href="#ga5514009510fe22eec545bcc91072d439">More...</a><br /></td></tr>
<tr class="separator:ga5514009510fe22eec545bcc91072d439"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2a9abe3cdd9a9ede8189c0ea8a42f11c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga2a9abe3cdd9a9ede8189c0ea8a42f11c">Cy_TCPWM_PWM_EnableCompare0Swap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:ga2a9abe3cdd9a9ede8189c0ea8a42f11c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the comparison swap of compare 0 and compareBuf 0 on OV and/or UN, depending on the PWM alignment.  <a href="#ga2a9abe3cdd9a9ede8189c0ea8a42f11c">More...</a><br /></td></tr>
<tr class="separator:ga2a9abe3cdd9a9ede8189c0ea8a42f11c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafa477f61cb9fdb4538afa60c6b3f3ce8"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gafa477f61cb9fdb4538afa60c6b3f3ce8">Cy_TCPWM_PWM_SetCounter</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t count)</td></tr>
<tr class="memdesc:gafa477f61cb9fdb4538afa60c6b3f3ce8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of the counter.  <a href="#gafa477f61cb9fdb4538afa60c6b3f3ce8">More...</a><br /></td></tr>
<tr class="separator:gafa477f61cb9fdb4538afa60c6b3f3ce8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadb59075f1586e2a2ddcda7d91f305950"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gadb59075f1586e2a2ddcda7d91f305950">Cy_TCPWM_PWM_GetCounter</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gadb59075f1586e2a2ddcda7d91f305950"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value in the counter.  <a href="#gadb59075f1586e2a2ddcda7d91f305950">More...</a><br /></td></tr>
<tr class="separator:gadb59075f1586e2a2ddcda7d91f305950"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga883bba567766887bd9cd6805b96428ec"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga883bba567766887bd9cd6805b96428ec">Cy_TCPWM_PWM_SetPeriod0</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t period0)</td></tr>
<tr class="memdesc:ga883bba567766887bd9cd6805b96428ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of the period register.  <a href="#ga883bba567766887bd9cd6805b96428ec">More...</a><br /></td></tr>
<tr class="separator:ga883bba567766887bd9cd6805b96428ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga83afe813dd570a369065a6d568d50636"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga83afe813dd570a369065a6d568d50636">Cy_TCPWM_PWM_GetPeriod0</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga83afe813dd570a369065a6d568d50636"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value in the period register.  <a href="#ga83afe813dd570a369065a6d568d50636">More...</a><br /></td></tr>
<tr class="separator:ga83afe813dd570a369065a6d568d50636"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac4bdd43ad0bbcf10d1d3a39d24e2a758"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gac4bdd43ad0bbcf10d1d3a39d24e2a758">Cy_TCPWM_PWM_SetPeriod1</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t period1)</td></tr>
<tr class="memdesc:gac4bdd43ad0bbcf10d1d3a39d24e2a758"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the value of the period register.  <a href="#gac4bdd43ad0bbcf10d1d3a39d24e2a758">More...</a><br /></td></tr>
<tr class="separator:gac4bdd43ad0bbcf10d1d3a39d24e2a758"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga02e3e075e001beec106c3d4358360211"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga02e3e075e001beec106c3d4358360211">Cy_TCPWM_PWM_GetPeriod1</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga02e3e075e001beec106c3d4358360211"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value in the period register.  <a href="#ga02e3e075e001beec106c3d4358360211">More...</a><br /></td></tr>
<tr class="separator:ga02e3e075e001beec106c3d4358360211"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga83434093ff26381b5098a1c0407e2a1e"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga83434093ff26381b5098a1c0407e2a1e">Cy_TCPWM_PWM_EnablePeriodSwap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:ga83434093ff26381b5098a1c0407e2a1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables a period swap on OV and/or UN, depending on the PWM alignment.  <a href="#ga83434093ff26381b5098a1c0407e2a1e">More...</a><br /></td></tr>
<tr class="separator:ga83434093ff26381b5098a1c0407e2a1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf02af1ef47fa43b60884ea948bd85861"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gaf02af1ef47fa43b60884ea948bd85861">Cy_TCPWM_PWM_GetDtCounter</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gaf02af1ef47fa43b60884ea948bd85861"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the dead time count when the PWM is configured in dead time mode.  <a href="#gaf02af1ef47fa43b60884ea948bd85861">More...</a><br /></td></tr>
<tr class="separator:gaf02af1ef47fa43b60884ea948bd85861"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2fa9cba4981ced19e06bcd3f790a1ea2"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga2fa9cba4981ced19e06bcd3f790a1ea2">Cy_TCPWM_PWM_LineOutStatus</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, uint32_t pwmOutSelect)</td></tr>
<tr class="memdesc:ga2fa9cba4981ced19e06bcd3f790a1ea2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current level of the selected pwm output line.  <a href="#ga2fa9cba4981ced19e06bcd3f790a1ea2">More...</a><br /></td></tr>
<tr class="separator:ga2fa9cba4981ced19e06bcd3f790a1ea2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac6431f369b92b730db9b2d1cdd2e8c86"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gac6431f369b92b730db9b2d1cdd2e8c86">Cy_TCPWM_PWM_PWMDeadTime</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, uint32_t deadTime)</td></tr>
<tr class="memdesc:gac6431f369b92b730db9b2d1cdd2e8c86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the dead time value for PWM.  <a href="#gac6431f369b92b730db9b2d1cdd2e8c86">More...</a><br /></td></tr>
<tr class="separator:gac6431f369b92b730db9b2d1cdd2e8c86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga23f94a001adb0d0cf8a85008f52333f6"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga23f94a001adb0d0cf8a85008f52333f6">Cy_TCPWM_PWM_PWMDeadTimeN</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, uint32_t deadTime)</td></tr>
<tr class="memdesc:ga23f94a001adb0d0cf8a85008f52333f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the dead time value for PWM.  <a href="#ga23f94a001adb0d0cf8a85008f52333f6">More...</a><br /></td></tr>
<tr class="separator:ga23f94a001adb0d0cf8a85008f52333f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0cb304e03b43541a6529af0782229b20"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga0cb304e03b43541a6529af0782229b20">Cy_TCPWM_PWM_Configure_LineSelect</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, <a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a> line_out_val, <a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a> line_compl_value)</td></tr>
<tr class="memdesc:ga0cb304e03b43541a6529af0782229b20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the source for the output signal "line_out" and "line_compl_out".  <a href="#ga0cb304e03b43541a6529af0782229b20">More...</a><br /></td></tr>
<tr class="separator:ga0cb304e03b43541a6529af0782229b20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae3ebd34cfb62ff24ffa18b26dfd68d31"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gae3ebd34cfb62ff24ffa18b26dfd68d31">Cy_TCPWM_PWM_Configure_LineSelectBuff</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, <a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a> line_out_val, <a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a> line_compl_value)</td></tr>
<tr class="memdesc:gae3ebd34cfb62ff24ffa18b26dfd68d31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Buffer for LINE SELCT.  <a href="#gae3ebd34cfb62ff24ffa18b26dfd68d31">More...</a><br /></td></tr>
<tr class="separator:gae3ebd34cfb62ff24ffa18b26dfd68d31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf3eb8ea9123430dfda021b569759e55"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gabf3eb8ea9123430dfda021b569759e55">Cy_TCPWM_PWM_EnableLineSelectSwap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:gabf3eb8ea9123430dfda021b569759e55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables a Line Select swap on OV and/or UN, depending on the PWM alignment.  <a href="#gabf3eb8ea9123430dfda021b569759e55">More...</a><br /></td></tr>
<tr class="separator:gabf3eb8ea9123430dfda021b569759e55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga19370f61b63e19e9c3b50dfb48ec9fe3"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga19370f61b63e19e9c3b50dfb48ec9fe3">Cy_TCPWM_PWM_SetDT</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, uint32_t deadTime)</td></tr>
<tr class="memdesc:ga19370f61b63e19e9c3b50dfb48ec9fe3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the dead time value for PWM.  <a href="#ga19370f61b63e19e9c3b50dfb48ec9fe3">More...</a><br /></td></tr>
<tr class="separator:ga19370f61b63e19e9c3b50dfb48ec9fe3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga28b98099ca159a2f50f07567eb43a112"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga28b98099ca159a2f50f07567eb43a112">Cy_TCPWM_PWM_EnableSwap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:ga28b98099ca159a2f50f07567eb43a112"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1, PERIOD and buffered PERIOD, DT and buffered DT.  <a href="#ga28b98099ca159a2f50f07567eb43a112">More...</a><br /></td></tr>
<tr class="separator:ga28b98099ca159a2f50f07567eb43a112"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab9f1093f64fc39c0be2e8917b9b610cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gab9f1093f64fc39c0be2e8917b9b610cb">Cy_TCPWM_PWM_Configure_Dithering</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, <a class="el" href="group__group__tcpwm__data__structures__pwm.html#ga5ba36f547c6817ce1f2a5ed6e89283ff">cy_en_tcpwm_dithering_t</a> <a class="el" href="group__group__ipc__bt__data__structures.html#ga37e90f5e3bd99fac2021fb3a326607d4">mode</a>, uint8_t period, uint8_t duty, <a class="el" href="group__group__tcpwm__data__structures__pwm.html#ga3ba205fa719411684a55b9fc3ad7b79c">cy_en_dithering_limiter_t</a> limiter)</td></tr>
<tr class="memdesc:gab9f1093f64fc39c0be2e8917b9b610cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">configures dithering.  <a href="#gab9f1093f64fc39c0be2e8917b9b610cb">More...</a><br /></td></tr>
<tr class="separator:gab9f1093f64fc39c0be2e8917b9b610cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0b559ade9579db19b0642b4b1dfb41c1"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga0b559ade9579db19b0642b4b1dfb41c1">Cy_TCPWM_PWM_PWMDeadTimeBuff</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, uint32_t deadTime)</td></tr>
<tr class="memdesc:ga0b559ade9579db19b0642b4b1dfb41c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the dead time buffered value for PWM.  <a href="#ga0b559ade9579db19b0642b4b1dfb41c1">More...</a><br /></td></tr>
<tr class="separator:ga0b559ade9579db19b0642b4b1dfb41c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga193882e8e50e548077775e6bde7fcf8f"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga193882e8e50e548077775e6bde7fcf8f">Cy_TCPWM_PWM_PWMDeadTimeBuffN</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, uint32_t deadTime)</td></tr>
<tr class="memdesc:ga193882e8e50e548077775e6bde7fcf8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the dead time buffered value for PWM.  <a href="#ga193882e8e50e548077775e6bde7fcf8f">More...</a><br /></td></tr>
<tr class="separator:ga193882e8e50e548077775e6bde7fcf8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga00caa836d8b391882405b5ec5b726903"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga00caa836d8b391882405b5ec5b726903">Cy_TCPWM_PWM_SetDTBuff</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, uint32_t deadTime)</td></tr>
<tr class="memdesc:ga00caa836d8b391882405b5ec5b726903"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes the dead time buffered value for PWM.  <a href="#ga00caa836d8b391882405b5ec5b726903">More...</a><br /></td></tr>
<tr class="separator:ga00caa836d8b391882405b5ec5b726903"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae9dfa26ff90263db912df5c8bc609460"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gae9dfa26ff90263db912df5c8bc609460">Cy_TCPWM_PWM_SetCompare1Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compare1)</td></tr>
<tr class="memdesc:gae9dfa26ff90263db912df5c8bc609460"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the compare value for Compare 1 when the compare mode enabled.  <a href="#gae9dfa26ff90263db912df5c8bc609460">More...</a><br /></td></tr>
<tr class="separator:gae9dfa26ff90263db912df5c8bc609460"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga737ae84fde081c31bc0a74092bb79900"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga737ae84fde081c31bc0a74092bb79900">Cy_TCPWM_PWM_GetCompare1Val</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga737ae84fde081c31bc0a74092bb79900"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns compare 1 value.  <a href="#ga737ae84fde081c31bc0a74092bb79900">More...</a><br /></td></tr>
<tr class="separator:ga737ae84fde081c31bc0a74092bb79900"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga917ec6c83509f3de84b7741fcc140c9b"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga917ec6c83509f3de84b7741fcc140c9b">Cy_TCPWM_PWM_SetCompare1BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t compareBuf1)</td></tr>
<tr class="memdesc:ga917ec6c83509f3de84b7741fcc140c9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the buffered compare value for Compare1 when the compare mode enabled.  <a href="#ga917ec6c83509f3de84b7741fcc140c9b">More...</a><br /></td></tr>
<tr class="separator:ga917ec6c83509f3de84b7741fcc140c9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3cdae63dfc8b404b3353f004a20c7fe7"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga3cdae63dfc8b404b3353f004a20c7fe7">Cy_TCPWM_PWM_GetCompare1BufVal</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga3cdae63dfc8b404b3353f004a20c7fe7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the buffered compare 1 value.  <a href="#ga3cdae63dfc8b404b3353f004a20c7fe7">More...</a><br /></td></tr>
<tr class="separator:ga3cdae63dfc8b404b3353f004a20c7fe7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5edc1279c07f799258d6a68353abab08"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#ga5edc1279c07f799258d6a68353abab08">Cy_TCPWM_PWM_EnableCompare1Swap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:ga5edc1279c07f799258d6a68353abab08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the comparison swap of compare1 and compareBuf1 on OV and/or UN, depending on the PWM alignment.  <a href="#ga5edc1279c07f799258d6a68353abab08">More...</a><br /></td></tr>
<tr class="separator:ga5edc1279c07f799258d6a68353abab08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadeae5714cda0e42f889c7f8f90702757"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__pwm.html#gadeae5714cda0e42f889c7f8f90702757">Cy_TCPWM_PWM_Set_KillLinePolarity</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, <a class="el" href="group__group__tcpwm__data__structures__pwm.html#ga19e8127ddd17a33fe06608855cd10c4d">cy_en_kill_line_polarity_t</a> kill_line_polarity)</td></tr>
<tr class="memdesc:gadeae5714cda0e42f889c7f8f90702757"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the source for the output signal "line_out" and "line_compl_out".  <a href="#gadeae5714cda0e42f889c7f8f90702757">More...</a><br /></td></tr>
<tr class="separator:gadeae5714cda0e42f889c7f8f90702757"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga6440d2a9dc8d85056abd62556bee7f82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6440d2a9dc8d85056abd62556bee7f82">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a> Cy_TCPWM_PWM_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the counter in the TCPWM block for the PWM operation. </p>
<dl class="section note"><dt>Note</dt><dd>After initialization, connected PWM output pins Drive modes are set to High-Z state. To set Drive modes as set by PWM output pins configuration, call the <a class="el" href="group__group__tcpwm__functions__pwm.html#ga802ebf3a49b1056e4bc5b057deb26e49">Cy_TCPWM_PWM_Enable</a> function.</dd>
<dd>
PSOC C3 device: This API also tries to disable HRPWM wounding when this feature is available on the target device. when HRPWM feature is enabled in the configuration structure this function checks if TCPWM wounding register is accessible and if yes then activate HRPWM feature. This operation could be done only if the application is running in protection context (PC) = 2 and because of that HRPWM feature could be automatically enable by this function only when PC == 2. The example how to activate HRPWM feature on the device which support it is in code snippet for this function.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. See <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error / status code. See <a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a>.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a> tcpwm_v1_pwm_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .pwmMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__modes.html#ga55368116802a4169ce0926c7283cdae7">CY_TCPWM_PWM_MODE_PWM</a>, <span class="comment">/* Simple PWM Mode */</span></div><div class="line">        <span class="comment">/* .clockPrescaler        = */</span> <a class="code" href="group__group__tcpwm__pwm__clk__prescalers.html#ga910d37fc9bb964bbeaa885b1c530ece9">CY_TCPWM_PWM_PRESCALER_DIVBY_4</a>, <span class="comment">/* Clk_counter = Clk_input / 4 */</span></div><div class="line">        <span class="comment">/* .pwmAlignment          = */</span> <a class="code" href="group__group__tcpwm__pwm__alignment.html#ga11be53f7e2d3b141f52d6ed2d7ef8c6a">CY_TCPWM_PWM_LEFT_ALIGN</a>, <span class="comment">/* PWM signal is left aligned, meaning it starts high */</span></div><div class="line">        <span class="comment">/* .deadTimeClocks        = */</span> 0UL, <span class="comment">/* dead time feature is disabled */</span></div><div class="line">        <span class="comment">/* .runMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__run__modes.html#gae979ff949eef746fe7c44905897f43f9">CY_TCPWM_PWM_CONTINUOUS</a>, <span class="comment">/* Wrap around at terminal count. */</span></div><div class="line">        <span class="comment">/* .period0               = */</span> 99UL, <span class="comment">/* Period of 100 (0-99). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .period1               = */</span> 199UL, <span class="comment">/* Period of 200 (0-199). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .enablePeriodSwap      = */</span> <span class="keyword">true</span>, <span class="comment">/* period swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .compare0              = */</span> 33UL, <span class="comment">/* duty cycle 33% (with period 100) */</span></div><div class="line">        <span class="comment">/* .compare1              = */</span> 66UL, <span class="comment">/* duty cycle 33% (with period 200) */</span></div><div class="line">        <span class="comment">/* .enableCompareSwap = */</span> <span class="keyword">true</span>, <span class="comment">/* compare swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .interruptSources  = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>, <span class="comment">/* interrupt will rise on terminal count */</span></div><div class="line">        <span class="comment">/* .invertPWMOut          = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .invertPWMOutN         = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .killMode              = */</span> <a class="code" href="group__group__tcpwm__pwm__kill__modes.html#gae48c28ac4f7eabcebfc72b197a089284">CY_TCPWM_PWM_STOP_ON_KILL</a>, <span class="comment">/* PWM stops counting on kill */</span></div><div class="line">        <span class="comment">/* .swapInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .swapInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .reloadInputMode       = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .reloadInput           = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .startInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .startInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .killInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .killInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .countInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Set this input to LEVEL and 1 (high logic level) */</span></div><div class="line">        <span class="comment">/* .countInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga7369f85b221bf7c70e1a580daa6a6bef">CY_TCPWM_INPUT_1</a>, <span class="comment">/* So the PWM will be enabled forever */</span></div><div class="line">        <span class="comment">/* .swapOverflowUnderflow = */</span> <span class="keyword">false</span>, <span class="comment">/* Use default overflow/underflow behavior */</span></div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_MASK  (1UL &lt;&lt; MY_TCPWM_PWM_NUM)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__pwm.html#ga6440d2a9dc8d85056abd62556bee7f82">Cy_TCPWM_PWM_Init</a>(TCPWM0, MY_TCPWM_PWM_NUM, &amp;tcpwm_v1_pwm_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Enable the initialized PWM */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga802ebf3a49b1056e4bc5b057deb26e49">Cy_TCPWM_PWM_Enable</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line"></div><div class="line">    <span class="comment">/* Then start the PWM */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a> tcpwm_v2_pwm_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .pwmMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__modes.html#ga55368116802a4169ce0926c7283cdae7">CY_TCPWM_PWM_MODE_PWM</a>, <span class="comment">/* Simple PWM Mode */</span></div><div class="line">        <span class="comment">/* .clockPrescaler        = */</span> <a class="code" href="group__group__tcpwm__pwm__clk__prescalers.html#ga910d37fc9bb964bbeaa885b1c530ece9">CY_TCPWM_PWM_PRESCALER_DIVBY_4</a>, <span class="comment">/* Clk_counter = Clk_input / 4 */</span></div><div class="line">        <span class="comment">/* .pwmAlignment          = */</span> <a class="code" href="group__group__tcpwm__pwm__alignment.html#ga11be53f7e2d3b141f52d6ed2d7ef8c6a">CY_TCPWM_PWM_LEFT_ALIGN</a>, <span class="comment">/* PWM signal is left aligned, meaning it starts high */</span></div><div class="line">        <span class="comment">/* .deadTimeClocks        = */</span> 0UL, <span class="comment">/* dead time feature is disabled */</span></div><div class="line">        <span class="comment">/* .runMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__run__modes.html#gae979ff949eef746fe7c44905897f43f9">CY_TCPWM_PWM_CONTINUOUS</a>, <span class="comment">/* Wrap around at terminal count. */</span></div><div class="line">        <span class="comment">/* .period0               = */</span> 99UL, <span class="comment">/* Period of 100 (0-99). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .period1               = */</span> 199UL, <span class="comment">/* Period of 200 (0-199). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .enablePeriodSwap      = */</span> <span class="keyword">true</span>, <span class="comment">/* period swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .compare0              = */</span> 33UL, <span class="comment">/* duty cycle 33% (with period 100) */</span></div><div class="line">        <span class="comment">/* .compare1              = */</span> 66UL, <span class="comment">/* duty cycle 33% (with period 200) */</span></div><div class="line">        <span class="comment">/* .enableCompareSwap     = */</span> <span class="keyword">true</span>, <span class="comment">/* compare swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .interruptSources      = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>, <span class="comment">/* interrupt will rise on terminal count */</span></div><div class="line">        <span class="comment">/* .invertPWMOut          = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .invertPWMOutN         = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .killMode              = */</span> <a class="code" href="group__group__tcpwm__pwm__kill__modes.html#gae48c28ac4f7eabcebfc72b197a089284">CY_TCPWM_PWM_STOP_ON_KILL</a>, <span class="comment">/* PWM stops counting on kill */</span></div><div class="line">        <span class="comment">/* .swapInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .swapInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .reloadInputMode       = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .reloadInput           = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .startInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .startInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .killInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .killInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .countInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Set this input to LEVEL and 1 (high logic level) */</span></div><div class="line">        <span class="comment">/* .countInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga7369f85b221bf7c70e1a580daa6a6bef">CY_TCPWM_INPUT_1</a>, <span class="comment">/* So the PWM will be enabled forever */</span></div><div class="line">        <span class="comment">/* .swapOverflowUnderflow = */</span> <span class="keyword">false</span>, <span class="comment">/* Use default overflow/underflow behavior */</span></div><div class="line">        <span class="comment">/* .immediateKill       = */</span> <span class="keyword">false</span>,  <span class="comment">/* Specifies whether the kill event immediately deactivates the dt_line_out and dt_line_compl_out or with the next module clock */</span></div><div class="line">        <span class="comment">/* .tapsEnabled         = */</span> 0x00UL, <span class="comment">/* In pseudo random mode this sets the enabled taps.*/</span></div><div class="line">        <span class="comment">/* .compare2            = */</span> 33UL, <span class="comment">/* duty cycle 33% (with period 100) */</span></div><div class="line">        <span class="comment">/* .compare3            = */</span> 66UL, <span class="comment">/* duty cycle 33% (with period 200) */</span></div><div class="line">        <span class="comment">/* .enableCompare1Swap  = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare0MatchUp     = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare0MatchDown   = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare1MatchUp     = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare1MatchDown   = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .kill1InputMode      = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default s tate (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .kill1Input          = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .pwmOnDisable        = */</span> <a class="code" href="group__group__tcpwm__pwm__output__on__disable.html#ga87530bb1de32700c51a788b8285e8684">CY_TCPWM_PWM_OUTPUT_HIGHZ</a>,     <span class="comment">/* Default High impedance mode*/</span></div><div class="line">        <span class="comment">/* .trigger0Event       = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger0 event generation*/</span></div><div class="line">        <span class="comment">/* .trigger1Event       = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger1 event generation*/</span></div><div class="line">        <span class="comment">/* .reloadLineSelect    = */</span> <span class="keyword">true</span>, <span class="comment">/* Configures how the reload line select */</span></div><div class="line">        <span class="comment">/* line_out_sel         = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* linecompl_out_sel      = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* line_out_sel_buff      = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* linecompl_out_sel_buff = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* deadTimeClocks_linecompl_out = */</span> 5U,</div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_MASK  (1UL &lt;&lt; MY_TCPWM_PWM_NUM)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__pwm.html#ga6440d2a9dc8d85056abd62556bee7f82">Cy_TCPWM_PWM_Init</a>(TCPWM0, MY_TCPWM_PWM_NUM, &amp;tcpwm_v2_pwm_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Enable the initialized PWM */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga802ebf3a49b1056e4bc5b057deb26e49">Cy_TCPWM_PWM_Enable</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line"></div><div class="line">    <span class="comment">/* Then start the PWM */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings and enable HRPWM feature</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a> tcpwm_v3_pwm_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .pwmMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__modes.html#ga55368116802a4169ce0926c7283cdae7">CY_TCPWM_PWM_MODE_PWM</a>, <span class="comment">/* Simple PWM Mode */</span></div><div class="line">        <span class="comment">/* .clockPrescaler        = */</span> <a class="code" href="group__group__tcpwm__pwm__clk__prescalers.html#ga910d37fc9bb964bbeaa885b1c530ece9">CY_TCPWM_PWM_PRESCALER_DIVBY_4</a>, <span class="comment">/* Clk_counter = Clk_input / 4 */</span></div><div class="line">        <span class="comment">/* .pwmAlignment          = */</span> <a class="code" href="group__group__tcpwm__pwm__alignment.html#ga11be53f7e2d3b141f52d6ed2d7ef8c6a">CY_TCPWM_PWM_LEFT_ALIGN</a>, <span class="comment">/* PWM signal is left aligned, meaning it starts high */</span></div><div class="line">        <span class="comment">/* .deadTimeClocks        = */</span> 0UL, <span class="comment">/* dead time feature is disabled */</span></div><div class="line">        <span class="comment">/* .runMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__run__modes.html#gae979ff949eef746fe7c44905897f43f9">CY_TCPWM_PWM_CONTINUOUS</a>, <span class="comment">/* Wrap around at terminal count. */</span></div><div class="line">        <span class="comment">/* .period0               = */</span> 99UL, <span class="comment">/* Period of 100 (0-99). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .period1               = */</span> 199UL, <span class="comment">/* Period of 200 (0-199). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .enablePeriodSwap      = */</span> <span class="keyword">true</span>, <span class="comment">/* period swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .compare0              = */</span> 33UL, <span class="comment">/* duty cycle 33% (with period 100) */</span></div><div class="line">        <span class="comment">/* .compare1              = */</span> 66UL, <span class="comment">/* duty cycle 33% (with period 200) */</span></div><div class="line">        <span class="comment">/* .enableCompareSwap     = */</span> <span class="keyword">true</span>, <span class="comment">/* compare swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .interruptSources      = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>, <span class="comment">/* interrupt will rise on terminal count */</span></div><div class="line">        <span class="comment">/* .invertPWMOut          = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .invertPWMOutN         = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .killMode              = */</span> <a class="code" href="group__group__tcpwm__pwm__kill__modes.html#gae48c28ac4f7eabcebfc72b197a089284">CY_TCPWM_PWM_STOP_ON_KILL</a>, <span class="comment">/* PWM stops counting on kill */</span></div><div class="line">        <span class="comment">/* .swapInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .swapInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .reloadInputMode       = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .reloadInput           = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .startInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .startInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .killInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .killInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .countInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Set this input to LEVEL and 1 (high logic level) */</span></div><div class="line">        <span class="comment">/* .countInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga7369f85b221bf7c70e1a580daa6a6bef">CY_TCPWM_INPUT_1</a>, <span class="comment">/* So the PWM will be enabled forever */</span></div><div class="line">        <span class="comment">/* .swapOverflowUnderflow = */</span> <span class="keyword">false</span>, <span class="comment">/* Use default overflow/underflow behavior */</span></div><div class="line">        <span class="comment">/* .immediateKill       = */</span> <span class="keyword">false</span>,  <span class="comment">/* Specifies whether the kill event immediately deactivates the dt_line_out and dt_line_compl_out or with the next module clock */</span></div><div class="line">        <span class="comment">/* .tapsEnabled         = */</span> 0x00UL, <span class="comment">/* In pseudo random mode this sets the enabled taps.*/</span></div><div class="line">        <span class="comment">/* .compare2            = */</span> 33UL, <span class="comment">/* duty cycle 33% (with period 100) */</span></div><div class="line">        <span class="comment">/* .compare3            = */</span> 66UL, <span class="comment">/* duty cycle 33% (with period 200) */</span></div><div class="line">        <span class="comment">/* .enableCompare1Swap  = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare0MatchUp     = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare0MatchDown   = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare1MatchUp     = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare1MatchDown   = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .kill1InputMode      = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default s tate (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .kill1Input          = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .pwmOnDisable        = */</span> <a class="code" href="group__group__tcpwm__pwm__output__on__disable.html#ga87530bb1de32700c51a788b8285e8684">CY_TCPWM_PWM_OUTPUT_HIGHZ</a>,     <span class="comment">/* Default High impedance mode*/</span></div><div class="line">        <span class="comment">/* .trigger0Event       = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger0 event generation*/</span></div><div class="line">        <span class="comment">/* .trigger1Event       = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger1 event generation*/</span></div><div class="line">        <span class="comment">/* .reloadLineSelect    = */</span> <span class="keyword">true</span>, <span class="comment">/* Configures how the reload line select */</span></div><div class="line">        <span class="comment">/* line_out_sel         = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* linecompl_out_sel      = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* line_out_sel_buff      = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* linecompl_out_sel_buff = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* deadTimeClocks_linecompl_out = */</span> 5U,</div><div class="line">        <span class="comment">/* .hrpwm_enable = */</span> <span class="keyword">true</span>,</div><div class="line">        <span class="comment">/* .hrpwm_input_freq = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#gga8c9f3eeb107eae3ea2a485f9169e3759ad3445cddbdd169c8c23b748651c10ea6">CY_TCPWM_HRPWM_FREQ_80MHZ_OR_100MHZ</a>,</div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_MASK  (1UL &lt;&lt; MY_TCPWM_PWM_NUM)</span></div><div class="line"></div><div class="line">    <span class="comment">/* PSOC C3 device: Disable HRPWM wounding on the device on which this feature is present.</span></div><div class="line"><span class="comment">       Note: Write to this register may cause a HardFault on the PSOC C3 device with disabled HRPWM feature</span></div><div class="line"><span class="comment">       This instruction should be called each time when the TCPWM block was turned off and on */</span></div><div class="line">    <span class="comment">/*</span></div><div class="line"><span class="comment">     * #if defined (CY_DEVICE_PSC3)</span></div><div class="line"><span class="comment">     *   CY_SET_REG32(GET_ALIAS_ADDRESS(CY_SYSTEM_TCPWM_DISABLE_ADDR), 0);</span></div><div class="line"><span class="comment">     * #endif</span></div><div class="line"><span class="comment">     */</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__pwm.html#ga6440d2a9dc8d85056abd62556bee7f82">Cy_TCPWM_PWM_Init</a>(TCPWM0, MY_TCPWM_PWM_NUM, &amp;tcpwm_v3_pwm_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Enable the initialized PWM */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga802ebf3a49b1056e4bc5b057deb26e49">Cy_TCPWM_PWM_Enable</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga428b093a2df4e1e80610596528b1c17d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga428b093a2df4e1e80610596528b1c17d">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_TCPWM_PWM_DeInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initializes the counter in the TCPWM block, returns register values to default. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. See <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to deinitialize the previously initialized counter */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Disable the counter prior to deinitializing */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga7bfbd69af5f7db59e8436967443f9f70">Cy_TCPWM_PWM_Disable</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga428b093a2df4e1e80610596528b1c17d">Cy_TCPWM_PWM_DeInit</a>(TCPWM0, MY_TCPWM_PWM_NUM, &amp;config);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga802ebf3a49b1056e4bc5b057deb26e49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga802ebf3a49b1056e4bc5b057deb26e49">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_Enable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the counter in the TCPWM block for the PWM operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a> tcpwm_v1_pwm_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .pwmMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__modes.html#ga55368116802a4169ce0926c7283cdae7">CY_TCPWM_PWM_MODE_PWM</a>, <span class="comment">/* Simple PWM Mode */</span></div><div class="line">        <span class="comment">/* .clockPrescaler        = */</span> <a class="code" href="group__group__tcpwm__pwm__clk__prescalers.html#ga910d37fc9bb964bbeaa885b1c530ece9">CY_TCPWM_PWM_PRESCALER_DIVBY_4</a>, <span class="comment">/* Clk_counter = Clk_input / 4 */</span></div><div class="line">        <span class="comment">/* .pwmAlignment          = */</span> <a class="code" href="group__group__tcpwm__pwm__alignment.html#ga11be53f7e2d3b141f52d6ed2d7ef8c6a">CY_TCPWM_PWM_LEFT_ALIGN</a>, <span class="comment">/* PWM signal is left aligned, meaning it starts high */</span></div><div class="line">        <span class="comment">/* .deadTimeClocks        = */</span> 0UL, <span class="comment">/* dead time feature is disabled */</span></div><div class="line">        <span class="comment">/* .runMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__run__modes.html#gae979ff949eef746fe7c44905897f43f9">CY_TCPWM_PWM_CONTINUOUS</a>, <span class="comment">/* Wrap around at terminal count. */</span></div><div class="line">        <span class="comment">/* .period0               = */</span> 99UL, <span class="comment">/* Period of 100 (0-99). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .period1               = */</span> 199UL, <span class="comment">/* Period of 200 (0-199). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .enablePeriodSwap      = */</span> <span class="keyword">true</span>, <span class="comment">/* period swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .compare0              = */</span> 33UL, <span class="comment">/* duty cycle 33% (with period 100) */</span></div><div class="line">        <span class="comment">/* .compare1              = */</span> 66UL, <span class="comment">/* duty cycle 33% (with period 200) */</span></div><div class="line">        <span class="comment">/* .enableCompareSwap = */</span> <span class="keyword">true</span>, <span class="comment">/* compare swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .interruptSources  = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>, <span class="comment">/* interrupt will rise on terminal count */</span></div><div class="line">        <span class="comment">/* .invertPWMOut          = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .invertPWMOutN         = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .killMode              = */</span> <a class="code" href="group__group__tcpwm__pwm__kill__modes.html#gae48c28ac4f7eabcebfc72b197a089284">CY_TCPWM_PWM_STOP_ON_KILL</a>, <span class="comment">/* PWM stops counting on kill */</span></div><div class="line">        <span class="comment">/* .swapInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .swapInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .reloadInputMode       = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .reloadInput           = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .startInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .startInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .killInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .killInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .countInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Set this input to LEVEL and 1 (high logic level) */</span></div><div class="line">        <span class="comment">/* .countInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga7369f85b221bf7c70e1a580daa6a6bef">CY_TCPWM_INPUT_1</a>, <span class="comment">/* So the PWM will be enabled forever */</span></div><div class="line">        <span class="comment">/* .swapOverflowUnderflow = */</span> <span class="keyword">false</span>, <span class="comment">/* Use default overflow/underflow behavior */</span></div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_MASK  (1UL &lt;&lt; MY_TCPWM_PWM_NUM)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__pwm.html#ga6440d2a9dc8d85056abd62556bee7f82">Cy_TCPWM_PWM_Init</a>(TCPWM0, MY_TCPWM_PWM_NUM, &amp;tcpwm_v1_pwm_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Enable the initialized PWM */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga802ebf3a49b1056e4bc5b057deb26e49">Cy_TCPWM_PWM_Enable</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line"></div><div class="line">    <span class="comment">/* Then start the PWM */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to initialize</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block</span></div><div class="line"><span class="comment">     * with the below configuration settings</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="structcy__stc__tcpwm__pwm__config__t.html">cy_stc_tcpwm_pwm_config_t</a> tcpwm_v2_pwm_config =</div><div class="line">    {</div><div class="line">        <span class="comment">/* .pwmMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__modes.html#ga55368116802a4169ce0926c7283cdae7">CY_TCPWM_PWM_MODE_PWM</a>, <span class="comment">/* Simple PWM Mode */</span></div><div class="line">        <span class="comment">/* .clockPrescaler        = */</span> <a class="code" href="group__group__tcpwm__pwm__clk__prescalers.html#ga910d37fc9bb964bbeaa885b1c530ece9">CY_TCPWM_PWM_PRESCALER_DIVBY_4</a>, <span class="comment">/* Clk_counter = Clk_input / 4 */</span></div><div class="line">        <span class="comment">/* .pwmAlignment          = */</span> <a class="code" href="group__group__tcpwm__pwm__alignment.html#ga11be53f7e2d3b141f52d6ed2d7ef8c6a">CY_TCPWM_PWM_LEFT_ALIGN</a>, <span class="comment">/* PWM signal is left aligned, meaning it starts high */</span></div><div class="line">        <span class="comment">/* .deadTimeClocks        = */</span> 0UL, <span class="comment">/* dead time feature is disabled */</span></div><div class="line">        <span class="comment">/* .runMode               = */</span> <a class="code" href="group__group__tcpwm__pwm__run__modes.html#gae979ff949eef746fe7c44905897f43f9">CY_TCPWM_PWM_CONTINUOUS</a>, <span class="comment">/* Wrap around at terminal count. */</span></div><div class="line">        <span class="comment">/* .period0               = */</span> 99UL, <span class="comment">/* Period of 100 (0-99). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .period1               = */</span> 199UL, <span class="comment">/* Period of 200 (0-199). Terminal count event when rolls over back to 0. */</span></div><div class="line">        <span class="comment">/* .enablePeriodSwap      = */</span> <span class="keyword">true</span>, <span class="comment">/* period swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .compare0              = */</span> 33UL, <span class="comment">/* duty cycle 33% (with period 100) */</span></div><div class="line">        <span class="comment">/* .compare1              = */</span> 66UL, <span class="comment">/* duty cycle 33% (with period 200) */</span></div><div class="line">        <span class="comment">/* .enableCompareSwap     = */</span> <span class="keyword">true</span>, <span class="comment">/* compare swapping feature is enabled */</span></div><div class="line">        <span class="comment">/* .interruptSources      = */</span> <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>, <span class="comment">/* interrupt will rise on terminal count */</span></div><div class="line">        <span class="comment">/* .invertPWMOut          = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .invertPWMOutN         = */</span> 0UL, <span class="comment">/* Not invert */</span></div><div class="line">        <span class="comment">/* .killMode              = */</span> <a class="code" href="group__group__tcpwm__pwm__kill__modes.html#gae48c28ac4f7eabcebfc72b197a089284">CY_TCPWM_PWM_STOP_ON_KILL</a>, <span class="comment">/* PWM stops counting on kill */</span></div><div class="line">        <span class="comment">/* .swapInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .swapInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .reloadInputMode       = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .reloadInput           = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .startInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .startInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .killInputMode         = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default state (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .killInput             = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .countInputMode        = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, <span class="comment">/* Set this input to LEVEL and 1 (high logic level) */</span></div><div class="line">        <span class="comment">/* .countInput            = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga7369f85b221bf7c70e1a580daa6a6bef">CY_TCPWM_INPUT_1</a>, <span class="comment">/* So the PWM will be enabled forever */</span></div><div class="line">        <span class="comment">/* .swapOverflowUnderflow = */</span> <span class="keyword">false</span>, <span class="comment">/* Use default overflow/underflow behavior */</span></div><div class="line">        <span class="comment">/* .immediateKill       = */</span> <span class="keyword">false</span>,  <span class="comment">/* Specifies whether the kill event immediately deactivates the dt_line_out and dt_line_compl_out or with the next module clock */</span></div><div class="line">        <span class="comment">/* .tapsEnabled         = */</span> 0x00UL, <span class="comment">/* In pseudo random mode this sets the enabled taps.*/</span></div><div class="line">        <span class="comment">/* .compare2            = */</span> 33UL, <span class="comment">/* duty cycle 33% (with period 100) */</span></div><div class="line">        <span class="comment">/* .compare3            = */</span> 66UL, <span class="comment">/* duty cycle 33% (with period 200) */</span></div><div class="line">        <span class="comment">/* .enableCompare1Swap  = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare0MatchUp     = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare0MatchDown   = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare1MatchUp     = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .compare1MatchDown   = */</span> <span class="keyword">true</span>, <span class="comment">/* Not implemented yet*/</span></div><div class="line">        <span class="comment">/* .kill1InputMode      = */</span> <a class="code" href="group__group__tcpwm__input__modes.html#ga0e441e0d42e07a5bffa0e0d4e9058a26">CY_TCPWM_INPUT_RISINGEDGE</a>, <span class="comment">/* This input is NOT used, leave it in default s tate (CY_TCPWM_INPUT_RISINGEDGE = 0UL) */</span></div><div class="line">        <span class="comment">/* .kill1Input          = */</span> <a class="code" href="group__group__tcpwm__input__selection.html#ga86b8267d250e656f6e79fbd703bce944">CY_TCPWM_INPUT_0</a>,</div><div class="line">        <span class="comment">/* .pwmOnDisable        = */</span> <a class="code" href="group__group__tcpwm__pwm__output__on__disable.html#ga87530bb1de32700c51a788b8285e8684">CY_TCPWM_PWM_OUTPUT_HIGHZ</a>,     <span class="comment">/* Default High impedance mode*/</span></div><div class="line">        <span class="comment">/* .trigger0Event       = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger0 event generation*/</span></div><div class="line">        <span class="comment">/* .trigger1Event       = */</span> <a class="code" href="group__group__tcpwm__output__trigger__modes.html#ga80297cac01044cbf8ea2af92c902da7e">CY_TCPWM_CNT_TRIGGER_ON_DISABLED</a>, <span class="comment">/* Disable output trigger1 event generation*/</span></div><div class="line">        <span class="comment">/* .reloadLineSelect    = */</span> <span class="keyword">true</span>, <span class="comment">/* Configures how the reload line select */</span></div><div class="line">        <span class="comment">/* line_out_sel         = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* linecompl_out_sel      = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* line_out_sel_buff      = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* linecompl_out_sel_buff = */</span> <a class="code" href="group__group__tcpwm__data__structures__pwm.html#ggab0adb8ee7ffc443e3ce016aec3d447c8a6c268b8864615e8ac0ff6086c7d5ad46">CY_TCPWM_OUTPUT_CONSTANT_0</a>,</div><div class="line">        <span class="comment">/* deadTimeClocks_linecompl_out = */</span> 5U,</div><div class="line">    };</div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_MASK  (1UL &lt;&lt; MY_TCPWM_PWM_NUM)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__enums.html#gga236beaba02c8a2a1c4eec981501e7270af9807d578257fa9f0d29cd86ef2c71ea">CY_TCPWM_SUCCESS</a> != <a class="code" href="group__group__tcpwm__functions__pwm.html#ga6440d2a9dc8d85056abd62556bee7f82">Cy_TCPWM_PWM_Init</a>(TCPWM0, MY_TCPWM_PWM_NUM, &amp;tcpwm_v2_pwm_config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle possible errors */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Enable the initialized PWM */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga802ebf3a49b1056e4bc5b057deb26e49">Cy_TCPWM_PWM_Enable</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line"></div><div class="line">    <span class="comment">/* Then start the PWM */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga7bfbd69af5f7db59e8436967443f9f70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7bfbd69af5f7db59e8436967443f9f70">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_Disable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the counter in the TCPWM block. </p>
<dl class="section note"><dt>Note</dt><dd>This function sets connected PWM output pins Drive modes to High-Z state. To disable PWM without changing pins drive modes, use the <a class="el" href="group__group__tcpwm__functions__common.html#ga4515b7f271f25914e7e9050cb4055663">Cy_TCPWM_TriggerStopOrKill</a> or <a class="el" href="group__group__tcpwm__functions__common.html#gad1459b0ddabf388afe151de57f7cf4d4">Cy_TCPWM_TriggerStopOrKill_Single</a> function.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is need to deinitialize the previously initialized counter */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Disable the counter prior to deinitializing */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga7bfbd69af5f7db59e8436967443f9f70">Cy_TCPWM_PWM_Disable</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga428b093a2df4e1e80610596528b1c17d">Cy_TCPWM_PWM_DeInit</a>(TCPWM0, MY_TCPWM_PWM_NUM, &amp;config);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga311f238402c63c616ee650d88cea181f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga311f238402c63c616ee650d88cea181f">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_GetStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_GetStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the status of the PWM whether it is running or not. </p>
<p>In case the PWM is running, status will also provide information on counting up/down. This is useful when the PWM Alignment mode set to Center/Asymmetric Alignments.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status. See <a class="el" href="group__group__tcpwm__pwm__status.html">PWM Status</a>. The status value is not the same as in TCPWM status register.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>The status value is not the same as in TCPWM status register.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to check if</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block is running or not.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t status = <a class="code" href="group__group__tcpwm__functions__pwm.html#ga311f238402c63c616ee650d88cea181f">Cy_TCPWM_PWM_GetStatus</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> ((<a class="code" href="group__group__tcpwm__pwm__status.html#ga30aa30ef821418b4e8f6df4bc8cead91">CY_TCPWM_PWM_STATUS_COUNTER_RUNNING</a> &amp; status) &amp;&amp; (<a class="code" href="group__group__tcpwm__pwm__status.html#gac593946986fb3fa4eefff715136be1d4">CY_TCPWM_PWM_STATUS_UP_COUNTING</a> &amp; status))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Up Counting */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((<a class="code" href="group__group__tcpwm__pwm__status.html#ga30aa30ef821418b4e8f6df4bc8cead91">CY_TCPWM_PWM_STATUS_COUNTER_RUNNING</a> &amp; status) &amp;&amp; (<a class="code" href="group__group__tcpwm__pwm__status.html#gac28b67391ec51fe3b8f4fbecd1b85508">CY_TCPWM_PWM_STATUS_DOWN_COUNTING</a> &amp; status))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Down Counting */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <span class="comment">/* PWM is not running */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaefee2e0b90dea3594aa413db257c3d6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaefee2e0b90dea3594aa413db257c3d6a">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_SetCompare0Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_SetCompare0Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compare0</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the compare value for Compare 0 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compare0</td><td>The Compare 0 value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to increment the Compare 0 value of</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing compare value */</span></div><div class="line">    uint32_t compare = <a class="code" href="group__group__tcpwm__functions__pwm.html#ga3979ea2dfd285f2ac008ebb8fc5d0cc0">Cy_TCPWM_PWM_GetCompare0Val</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <span class="comment">/* Modify the compare value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#gaefee2e0b90dea3594aa413db257c3d6a">Cy_TCPWM_PWM_SetCompare0Val</a>(TCPWM0, MY_TCPWM_PWM_NUM, compare);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga3979ea2dfd285f2ac008ebb8fc5d0cc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3979ea2dfd285f2ac008ebb8fc5d0cc0">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_GetCompare0Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_GetCompare0Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns compare 0 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Compare 0 value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to increment the Compare 0 value of</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing compare value */</span></div><div class="line">    uint32_t compare = <a class="code" href="group__group__tcpwm__functions__pwm.html#ga3979ea2dfd285f2ac008ebb8fc5d0cc0">Cy_TCPWM_PWM_GetCompare0Val</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <span class="comment">/* Modify the compare value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#gaefee2e0b90dea3594aa413db257c3d6a">Cy_TCPWM_PWM_SetCompare0Val</a>(TCPWM0, MY_TCPWM_PWM_NUM, compare);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga9c63c17045b417ecfa6e0346f9f99879"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9c63c17045b417ecfa6e0346f9f99879">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_SetCompare0BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_SetCompare0BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compareBuf0</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the buffered compare value for Compare 0 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compareBuf0</td><td>The buffered Compare 0 value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to modify the alternative compare value</span></div><div class="line"><span class="comment">     * (Compare 1) for the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * Note: the compare swapping feature should be enabled.</span></div><div class="line"><span class="comment">     * This can be used to change the compare value on the fly without a</span></div><div class="line"><span class="comment">     * modification of the compare value itself.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing compare value */</span></div><div class="line">    uint32_t compare = <a class="code" href="group__group__tcpwm__functions__pwm.html#ga5514009510fe22eec545bcc91072d439">Cy_TCPWM_PWM_GetCompare0BufVal</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <span class="comment">/* Modify the compare value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga9c63c17045b417ecfa6e0346f9f99879">Cy_TCPWM_PWM_SetCompare0BufVal</a>(TCPWM0, MY_TCPWM_PWM_NUM, compare);</div><div class="line">    <span class="comment">/* Now the compare 0 and 1 values can be swapped using either HW input or Cy_TCPWM_TriggerCaptureOrSwap_Single */</span></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga5514009510fe22eec545bcc91072d439"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5514009510fe22eec545bcc91072d439">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_GetCompare0BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_GetCompare0BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the buffered compare 0 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Buffered compare 0 value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to modify the alternative compare value</span></div><div class="line"><span class="comment">     * (Compare 1) for the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * Note: the compare swapping feature should be enabled.</span></div><div class="line"><span class="comment">     * This can be used to change the compare value on the fly without a</span></div><div class="line"><span class="comment">     * modification of the compare value itself.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing compare value */</span></div><div class="line">    uint32_t compare = <a class="code" href="group__group__tcpwm__functions__pwm.html#ga5514009510fe22eec545bcc91072d439">Cy_TCPWM_PWM_GetCompare0BufVal</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <span class="comment">/* Modify the compare value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga9c63c17045b417ecfa6e0346f9f99879">Cy_TCPWM_PWM_SetCompare0BufVal</a>(TCPWM0, MY_TCPWM_PWM_NUM, compare);</div><div class="line">    <span class="comment">/* Now the compare 0 and 1 values can be swapped using either HW input or Cy_TCPWM_TriggerCaptureOrSwap_Single */</span></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga2a9abe3cdd9a9ede8189c0ea8a42f11c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2a9abe3cdd9a9ede8189c0ea8a42f11c">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_EnableCompare0Swap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_EnableCompare0Swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the comparison swap of compare 0 and compareBuf 0 on OV and/or UN, depending on the PWM alignment. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to enable the compare swapping feature for</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block</span></div><div class="line"><span class="comment">     * This can be used to change the compare value on the fly without a</span></div><div class="line"><span class="comment">     * modification of the compare value itself.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga2a9abe3cdd9a9ede8189c0ea8a42f11c">Cy_TCPWM_PWM_EnableCompare0Swap</a>(TCPWM0, MY_TCPWM_PWM_NUM, <span class="keyword">true</span>);</div><div class="line"></div><div class="line">    <span class="comment">/* Now the compare 0 and 1 values can be swapped using either HW input or Cy_TCPWM_TriggerCaptureOrSwap_Single */</span></div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>From Version 3 of TCPWM, this feature is coupled with the swap enable feature (<a class="el" href="group__group__tcpwm__functions__pwm.html#ga28b98099ca159a2f50f07567eb43a112" title="Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1...">Cy_TCPWM_PWM_EnableSwap()</a>). when both reload and swap are enabled then CC0 value is swapped with CC0 buff value. When only reload is enabled then CC0 buff value is copied to CC0. There is no action when reload is disabled. </dd></dl>

</div>
</div>
<a id="gafa477f61cb9fdb4538afa60c6b3f3ce8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafa477f61cb9fdb4538afa60c6b3f3ce8">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_SetCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_SetCounter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the value of the counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">count</td><td>The value to write into the counter.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the counter value for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_MASK  (1UL &lt;&lt; MY_TCPWM_PWM_NUM)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_VAL   (100UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad1459b0ddabf388afe151de57f7cf4d4">Cy_TCPWM_TriggerStopOrKill_Single</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#gafa477f61cb9fdb4538afa60c6b3f3ce8">Cy_TCPWM_PWM_SetCounter</a>(TCPWM0, MY_TCPWM_PWM_NUM, MY_TCPWM_PWM_VAL);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gadb59075f1586e2a2ddcda7d91f305950"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadb59075f1586e2a2ddcda7d91f305950">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_GetCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_GetCounter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the value in the counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current counter value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to get the current counter value of</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     * This can be used instead of capture mechanism,</span></div><div class="line"><span class="comment">     * when the time latency is not critical, etc.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t count = <a class="code" href="group__group__tcpwm__functions__pwm.html#gadb59075f1586e2a2ddcda7d91f305950">Cy_TCPWM_PWM_GetCounter</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga883bba567766887bd9cd6805b96428ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga883bba567766887bd9cd6805b96428ec">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_SetPeriod0()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_SetPeriod0 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>period0</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the value of the period register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">period0</td><td>The value to write into a period.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to modify the Period 0 value of</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * This can be used to change the PWM signal frequency.</span></div><div class="line"><span class="comment">     * Note: prior to Period 0 changing either should be done:</span></div><div class="line"><span class="comment">     * - the PWM should be disabled (if the period swapping feature is not used).</span></div><div class="line"><span class="comment">     * - the period swapping feature should be enabled and the current &quot;working&quot; period should be the Period 1.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing period value */</span></div><div class="line">    uint32_t period = <a class="code" href="group__group__tcpwm__functions__pwm.html#ga83afe813dd570a369065a6d568d50636">Cy_TCPWM_PWM_GetPeriod0</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <span class="comment">/* Modify the period value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga883bba567766887bd9cd6805b96428ec">Cy_TCPWM_PWM_SetPeriod0</a>(TCPWM0, MY_TCPWM_PWM_NUM, period);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga83afe813dd570a369065a6d568d50636"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga83afe813dd570a369065a6d568d50636">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_GetPeriod0()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_GetPeriod0 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the value in the period register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current period value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to modify the Period 0 value of</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * This can be used to change the PWM signal frequency.</span></div><div class="line"><span class="comment">     * Note: prior to Period 0 changing either should be done:</span></div><div class="line"><span class="comment">     * - the PWM should be disabled (if the period swapping feature is not used).</span></div><div class="line"><span class="comment">     * - the period swapping feature should be enabled and the current &quot;working&quot; period should be the Period 1.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing period value */</span></div><div class="line">    uint32_t period = <a class="code" href="group__group__tcpwm__functions__pwm.html#ga83afe813dd570a369065a6d568d50636">Cy_TCPWM_PWM_GetPeriod0</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <span class="comment">/* Modify the period value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga883bba567766887bd9cd6805b96428ec">Cy_TCPWM_PWM_SetPeriod0</a>(TCPWM0, MY_TCPWM_PWM_NUM, period);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gac4bdd43ad0bbcf10d1d3a39d24e2a758"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac4bdd43ad0bbcf10d1d3a39d24e2a758">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_SetPeriod1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_SetPeriod1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>period1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the value of the period register. </p>
<p>In pseudo random mode period 1 sets which taps are enabled.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">period1</td><td>The value to write into a period 1.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to modify the alternative period value</span></div><div class="line"><span class="comment">     * (Period 1) of the first (index = 0) PWM of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * Note: the period swapping feature should be enabled.</span></div><div class="line"><span class="comment">     * This can be used to change the PWM signal frequency on the fly without a</span></div><div class="line"><span class="comment">     * modification of the period value itself.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing period value */</span></div><div class="line">    uint32_t period = <a class="code" href="group__group__tcpwm__functions__pwm.html#ga02e3e075e001beec106c3d4358360211">Cy_TCPWM_PWM_GetPeriod1</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <span class="comment">/* Modify the period value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#gac4bdd43ad0bbcf10d1d3a39d24e2a758">Cy_TCPWM_PWM_SetPeriod1</a>(TCPWM0, MY_TCPWM_PWM_NUM, period);</div><div class="line">    <span class="comment">/* Now the Period 0 and 1 values can be swapped using Cy_TCPWM_TriggerCaptureOrSwap_Single */</span></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga02e3e075e001beec106c3d4358360211"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga02e3e075e001beec106c3d4358360211">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_GetPeriod1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_GetPeriod1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the value in the period register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a COUNTER PWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current period value.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to modify the alternative period value</span></div><div class="line"><span class="comment">     * (Period 1) of the first (index = 0) PWM of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * Note: the period swapping feature should be enabled.</span></div><div class="line"><span class="comment">     * This can be used to change the PWM signal frequency on the fly without a</span></div><div class="line"><span class="comment">     * modification of the period value itself.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the currently existing period value */</span></div><div class="line">    uint32_t period = <a class="code" href="group__group__tcpwm__functions__pwm.html#ga02e3e075e001beec106c3d4358360211">Cy_TCPWM_PWM_GetPeriod1</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div><div class="line">    <span class="comment">/* Modify the period value here */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#gac4bdd43ad0bbcf10d1d3a39d24e2a758">Cy_TCPWM_PWM_SetPeriod1</a>(TCPWM0, MY_TCPWM_PWM_NUM, period);</div><div class="line">    <span class="comment">/* Now the Period 0 and 1 values can be swapped using Cy_TCPWM_TriggerCaptureOrSwap_Single */</span></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga83434093ff26381b5098a1c0407e2a1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga83434093ff26381b5098a1c0407e2a1e">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_EnablePeriodSwap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_EnablePeriodSwap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables a period swap on OV and/or UN, depending on the PWM alignment. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to enable the period swapping feature for</span></div><div class="line"><span class="comment">     * the first (index = 0) PWM of the TCPWM0 block</span></div><div class="line"><span class="comment">     * This can be used to change the period value on the fly without a</span></div><div class="line"><span class="comment">     * modification of the period value itself.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga83434093ff26381b5098a1c0407e2a1e">Cy_TCPWM_PWM_EnablePeriodSwap</a>(TCPWM0, MY_TCPWM_PWM_NUM, <span class="keyword">true</span>);</div><div class="line">    <span class="comment">/* Now the Period 0 and 1 values can be swapped using either Swap HW input or Cy_TCPWM_TriggerCaptureOrSwap_Single */</span></div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>From Version 3 of TCPWM, this feature is coupled with the swap enable feature (<a class="el" href="group__group__tcpwm__functions__pwm.html#ga28b98099ca159a2f50f07567eb43a112" title="Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1...">Cy_TCPWM_PWM_EnableSwap()</a>). when both reload and swap are enabled then period value is swapped with period buff value. When only reload is enabled then period buff value is copied to period. There is no action when reload is disabled. </dd></dl>

</div>
</div>
<a id="gaf02af1ef47fa43b60884ea948bd85861"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf02af1ef47fa43b60884ea948bd85861">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_GetDtCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_GetDtCounter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the dead time count when the PWM is configured in dead time mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The dead time counter.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: When the PWM is configured in dead time mode, get the dead time counter value*/</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t count = <a class="code" href="group__group__tcpwm__functions__pwm.html#gaf02af1ef47fa43b60884ea948bd85861">Cy_TCPWM_PWM_GetDtCounter</a>(TCPWM0, MY_TCPWM_PWM_NUM);</div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver2 </dd></dl>

</div>
</div>
<a id="ga2fa9cba4981ced19e06bcd3f790a1ea2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2fa9cba4981ced19e06bcd3f790a1ea2">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_LineOutStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_LineOutStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pwmOutSelect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current level of the selected pwm output line. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">pwmOutSelect</td><td>Defines which pwm output line is being checked pwm or pwm_n.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current pwm output line level.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: there is a need to check current level of</span></div><div class="line"><span class="comment">     * PWM Line output for the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__functions__pwm.html#ga2fa9cba4981ced19e06bcd3f790a1ea2">Cy_TCPWM_PWM_LineOutStatus</a>(TCPWM0, MY_TCPWM_PWM_NUM, <a class="code" href="group__group__tcpwm__pwm__output__line.html#ga3721efe9ff36bc84edd87faa4e2819b7">CY_TCPWM_PWM_LINE_PWM</a>))</div><div class="line">    {</div><div class="line">        <span class="comment">/* PWM Line is High */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <span class="comment">/* PWM Line is Low */</span></div><div class="line">    }</div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver2 </dd></dl>

</div>
</div>
<a id="gac6431f369b92b730db9b2d1cdd2e8c86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac6431f369b92b730db9b2d1cdd2e8c86">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_PWMDeadTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_PWMDeadTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>deadTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes the dead time value for PWM. </p>
<p>This is the number of clock cycles of dead time to activate Line Out</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">deadTime</td><td>The dead time value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: there is a need to update deadTimeClocks for line_out</span></div><div class="line"><span class="comment">     * and line_compl_out for the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#gac6431f369b92b730db9b2d1cdd2e8c86">Cy_TCPWM_PWM_PWMDeadTime</a>(TCPWM0, MY_TCPWM_PWM_NUM, 10U);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga23f94a001adb0d0cf8a85008f52333f6">Cy_TCPWM_PWM_PWMDeadTimeN</a>(TCPWM0, MY_TCPWM_PWM_NUM, 10U);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga23f94a001adb0d0cf8a85008f52333f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga23f94a001adb0d0cf8a85008f52333f6">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_PWMDeadTimeN()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_PWMDeadTimeN </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>deadTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes the dead time value for PWM. </p>
<p>This is the number of clock cycles of dead time to activate Line Compliment Out</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">deadTime</td><td>The dead time value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: there is a need to update deadTimeClocks for line_out</span></div><div class="line"><span class="comment">     * and line_compl_out for the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#gac6431f369b92b730db9b2d1cdd2e8c86">Cy_TCPWM_PWM_PWMDeadTime</a>(TCPWM0, MY_TCPWM_PWM_NUM, 10U);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga23f94a001adb0d0cf8a85008f52333f6">Cy_TCPWM_PWM_PWMDeadTimeN</a>(TCPWM0, MY_TCPWM_PWM_NUM, 10U);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga0cb304e03b43541a6529af0782229b20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0cb304e03b43541a6529af0782229b20">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_Configure_LineSelect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_Configure_LineSelect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a>&#160;</td>
          <td class="paramname"><em>line_out_val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a>&#160;</td>
          <td class="paramname"><em>line_compl_value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the source for the output signal "line_out" and "line_compl_out". </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">line_out_val</td><td>Source for the lie out signal <a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a></td></tr>
    <tr><td class="paramname">line_compl_value</td><td>Source for the lie compl out signal <a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae3ebd34cfb62ff24ffa18b26dfd68d31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae3ebd34cfb62ff24ffa18b26dfd68d31">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_Configure_LineSelectBuff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_Configure_LineSelectBuff </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a>&#160;</td>
          <td class="paramname"><em>line_out_val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a>&#160;</td>
          <td class="paramname"><em>line_compl_value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Buffer for LINE SELCT. </p>
<p>Can be exchanged with Line Select values on a terminal count event with an actively pending switch event.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">line_out_val</td><td>Source for the lie out signal <a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a></td></tr>
    <tr><td class="paramname">line_compl_value</td><td>Source for the lie compl out signal <a class="el" href="group__group__tcpwm__data__structures__pwm.html#gab0adb8ee7ffc443e3ce016aec3d447c8">cy_en_line_select_config_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gabf3eb8ea9123430dfda021b569759e55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabf3eb8ea9123430dfda021b569759e55">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_EnableLineSelectSwap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_EnableLineSelectSwap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables a Line Select swap on OV and/or UN, depending on the PWM alignment. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>From Version 3 of TCPWM, this feature is coupled with the swap enable feature (<a class="el" href="group__group__tcpwm__functions__pwm.html#ga28b98099ca159a2f50f07567eb43a112" title="Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1...">Cy_TCPWM_PWM_EnableSwap()</a>). when both reload and swap are enabled then line select value is swapped with line select buff value. When only reload is enabled then line select buff value is copied to line select. There is no action when reload is disabled. </dd></dl>

</div>
</div>
<a id="ga19370f61b63e19e9c3b50dfb48ec9fe3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga19370f61b63e19e9c3b50dfb48ec9fe3">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_SetDT()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_SetDT </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>deadTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes the dead time value for PWM. </p>
<p>This is the number of clock cycles of dead time to activate Line Out and Line Compliment Out</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">deadTime</td><td>The dead time value for both Line Out and Line Compliment Out.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>32 bit value with 0-15 bits to set Line out Dead Time value and 16-31 bits to set Line Compliment Out Dead Time Value. </dd></dl>

</div>
</div>
<a id="ga28b98099ca159a2f50f07567eb43a112"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga28b98099ca159a2f50f07567eb43a112">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_EnableSwap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_EnableSwap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1, PERIOD and buffered PERIOD, DT and buffered DT. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This feature is coupled with the reload feature. when both reload and swap are enabled then CC0/CC1/PERIOD/DT values are swapped with CC_BUFF/CC1_BUFF/PERIOD_BUFF/DT_BUFF values respectively When only reload is enabled then CC_BUFF/CC1_BUFF/PERIOD_BUFF/DT_BUFF values are copied to CC0/CC1/PERIOD/DT respectively. There is no action when reload is disabled. </dd></dl>

</div>
</div>
<a id="gab9f1093f64fc39c0be2e8917b9b610cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab9f1093f64fc39c0be2e8917b9b610cb">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_Configure_Dithering()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a> Cy_TCPWM_PWM_Configure_Dithering </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__data__structures__pwm.html#ga5ba36f547c6817ce1f2a5ed6e89283ff">cy_en_tcpwm_dithering_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>period</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>duty</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__data__structures__pwm.html#ga3ba205fa719411684a55b9fc3ad7b79c">cy_en_dithering_limiter_t</a>&#160;</td>
          <td class="paramname"><em>limiter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>configures dithering. </p>
<p>applicable only when GRP_DITHERING_PRESENT and in PWM and PWM_DT mode</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">mode</td><td>Dithering mode See <a class="el" href="group__group__tcpwm__data__structures__pwm.html#ga5ba36f547c6817ce1f2a5ed6e89283ff">cy_en_tcpwm_dithering_t</a> .</td></tr>
    <tr><td class="paramname">period</td><td>initial value for period LFSR. Should be non zero value.</td></tr>
    <tr><td class="paramname">duty</td><td>Initial value for duty LFSR. Should be non zero value.</td></tr>
    <tr><td class="paramname">limiter</td><td>Dithering limiter values. It defines the magnitude of the pseudo-random value to be added to period/CC0/CC1 <a class="el" href="group__group__tcpwm__data__structures__pwm.html#ga3ba205fa719411684a55b9fc3ad7b79c">cy_en_dithering_limiter_t</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error / Status code. See cy_en_tcpwm_status_t.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>When PWM alignment mode set to "asymmetric CC0 and CC1", The duty width remains the same, because the same value is added to CC0 and CC1. As LFSR is updated at tc event and both CC0 match and CC1 match happen before tc event. </dd></dl>

</div>
</div>
<a id="ga0b559ade9579db19b0642b4b1dfb41c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0b559ade9579db19b0642b4b1dfb41c1">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_PWMDeadTimeBuff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_PWMDeadTimeBuff </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>deadTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes the dead time buffered value for PWM. </p>
<p>This is the number of clock cycles of dead time to activate Line Out Data from DT_BUFF will be shallow transferred to DT (when swap enable is disabled) on a terminal count event with an actively pending switch event.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">deadTime</td><td>The dead time value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: there is a need to update deadTimeClocks for line_out</span></div><div class="line"><span class="comment">     * and line_compl_out for the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#gac6431f369b92b730db9b2d1cdd2e8c86">Cy_TCPWM_PWM_PWMDeadTime</a>(TCPWM0, MY_TCPWM_PWM_NUM, 10U);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga23f94a001adb0d0cf8a85008f52333f6">Cy_TCPWM_PWM_PWMDeadTimeN</a>(TCPWM0, MY_TCPWM_PWM_NUM, 10U);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga193882e8e50e548077775e6bde7fcf8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga193882e8e50e548077775e6bde7fcf8f">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_PWMDeadTimeBuffN()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_PWMDeadTimeBuffN </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>deadTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes the dead time buffered value for PWM. </p>
<p>This is the number of clock cycles of dead time to activate Line Compliment Out Data from DT_BUFF will be shallow transferred to DT (when swap enable is disabled) on a terminal count event with an actively pending switch event.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">deadTime</td><td>The dead time value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: there is a need to update deadTimeClocks for line_out</span></div><div class="line"><span class="comment">     * and line_compl_out for the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#gac6431f369b92b730db9b2d1cdd2e8c86">Cy_TCPWM_PWM_PWMDeadTime</a>(TCPWM0, MY_TCPWM_PWM_NUM, 10U);</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__pwm.html#ga23f94a001adb0d0cf8a85008f52333f6">Cy_TCPWM_PWM_PWMDeadTimeN</a>(TCPWM0, MY_TCPWM_PWM_NUM, 10U);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga00caa836d8b391882405b5ec5b726903"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga00caa836d8b391882405b5ec5b726903">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_SetDTBuff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_SetDTBuff </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>deadTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes the dead time buffered value for PWM. </p>
<p>This is the number of clock cycles of dead time to activate Line Out and Line Compliment Out Data from DT_BUFF will be shallow transferred to DT (when swap enable is disabled) on a terminal count event with an actively pending switch event.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">deadTime</td><td>The dead time value for both Line Out and Line Compliment Out.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>32 bit value with 0-15 bits to set Line out Dead Time value and 16-31 bits to set Line Compliment Out Dead Time Value. </dd></dl>

</div>
</div>
<a id="gae9dfa26ff90263db912df5c8bc609460"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae9dfa26ff90263db912df5c8bc609460">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_SetCompare1Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_SetCompare1Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compare1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the compare value for Compare 1 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compare1</td><td>The Compare1 value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga737ae84fde081c31bc0a74092bb79900"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga737ae84fde081c31bc0a74092bb79900">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_GetCompare1Val()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_GetCompare1Val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns compare 1 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Compare 1 value. </dd></dl>

</div>
</div>
<a id="ga917ec6c83509f3de84b7741fcc140c9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga917ec6c83509f3de84b7741fcc140c9b">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_SetCompare1BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_SetCompare1BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>compareBuf1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the buffered compare value for Compare1 when the compare mode enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">compareBuf1</td><td>The buffered Compare 1 value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga3cdae63dfc8b404b3353f004a20c7fe7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3cdae63dfc8b404b3353f004a20c7fe7">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_GetCompare1BufVal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_PWM_GetCompare1BufVal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the buffered compare 1 value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Buffered compare 1 value. </dd></dl>

</div>
</div>
<a id="ga5edc1279c07f799258d6a68353abab08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5edc1279c07f799258d6a68353abab08">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_EnableCompare1Swap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_EnableCompare1Swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the comparison swap of compare1 and compareBuf1 on OV and/or UN, depending on the PWM alignment. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true = swap enabled; false = swap disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>From Version 3 of TCPWM, this feature is coupled with the swap enable feature (<a class="el" href="group__group__tcpwm__functions__pwm.html#ga28b98099ca159a2f50f07567eb43a112" title="Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1...">Cy_TCPWM_PWM_EnableSwap()</a>). when both reload and swap are enabled then CC1 value is swapped with CC1 buff value. When only reload is enabled then CC1 buff value is copied to CC1. There is no action when reload is disabled. </dd></dl>

</div>
</div>
<a id="gadeae5714cda0e42f889c7f8f90702757"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadeae5714cda0e42f889c7f8f90702757">&#9670;&nbsp;</a></span>Cy_TCPWM_PWM_Set_KillLinePolarity()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_PWM_Set_KillLinePolarity </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__data__structures__pwm.html#ga19e8127ddd17a33fe06608855cd10c4d">cy_en_kill_line_polarity_t</a>&#160;</td>
          <td class="paramname"><em>kill_line_polarity</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the source for the output signal "line_out" and "line_compl_out". </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">kill_line_polarity</td><td>Kill Line polarity value <a class="el" href="group__group__tcpwm__data__structures__pwm.html#ga19e8127ddd17a33fe06608855cd10c4d">cy_en_kill_line_polarity_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
